package com.ms.game.slot.base;
/**
 * 歷史記錄基底類別
 * @author TW15012
 *
 */
public class SlotHistoryBase 
{
	/**
	 * 今日日期
	 */
	protected String date;
	
	/**
	 * 今日總押注
	 */
	protected long totalbet;
	
	/**
	 * 今日總得分
	 */
	protected long payout;
	
	/**
	 * 今日bous次數
	 */
	protected int bounscount;
	
	
	protected int spin;
	
	public int getSpin() {
		return spin;
	}

	public void setSpin(int spin) {
		this.spin = spin;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public long getTotalbet() {
		return totalbet;
	}

	public void setTotalbet(long totalbet) {
		this.totalbet = totalbet;
	}

	public long getPayout() {
		return payout;
	}

	public void setPayout(long payout) {
		this.payout = payout;
	}

	public int getBounscount() {
		return bounscount;
	}

	public void setBounscount(int bounscount) {
		this.bounscount = bounscount;
	}

	/**
	 * 初始化
	 */
	public void init(String today)
	{
		date = today;
		totalbet =0;
		payout =0;
		bounscount=0;
	}	
	
	/**
	 * 重置
	 */
	public void reset()
	{
		bounscount++;
	}
	
	/**
	 * 增加
	 */
	public void incr()
	{
		
	}
	
	/**
	 * 每日記錄更新
	 * @param betmoney
	 * @param score
	 */
	public void update(int betmoney , int score)
	{
		totalbet+=betmoney;
		payout+=score;
		spin++;
	}
}
